package kube_router

import (
	"github.com/gin-gonic/gin"
	"virtual-resource-schedule-service/api/kube_api"
	"virtual-resource-schedule-service/utils/auth"
)

func InitPodRouter(Router *gin.RouterGroup) {
	PodRouter := Router.Group("kube_pod").Use(auth.JWTAuth())
	{
		PodRouter.POST("/create", kube_api.CreateContainer)     // 创建容器，且创建后处于未开机的状态
		PodRouter.POST("/start", kube_api.StartContainer)       // 开启容器
		PodRouter.POST("/shutdown", kube_api.ShutdownContainer) // 关闭容器
	}
}
